<h1>创建文章</h1>

@if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif

<form action="{{ url('post') }}" method="post">
    <input type="hidden" name="_token" value="{{csrf_token()}}">
    <input type="text" name="title" value="" >
    <input type="text" name="body" value="" >

    <button type="submit">提交</button>
</form>